package cn.eli.vue.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author :lzs
 * @Description:用户信息实体类
 */

@Getter
@Setter
public class User {
    private int user_id;
    private String user_name;
    private String user_loginNumber;
    private String user_password;
    private int user_sex;           /*性别 1->男 0->女 */
    private String user_avaturl;    /*用户头像url*/
    private Boolean user_isAdmin;
    private int user_subscribeNum;  /*点赞数*/
    private int user_fansNum;
    private int user_beLikeNum;
    private int user_status;        /*用户状态字 0->正常 1->封号*/


    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() { return user_name; }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_loginNumber() {
        return user_loginNumber;
    }

    public void setUser_loginNumber(String user_loginNumber) {
        this.user_loginNumber = user_loginNumber;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public int getUser_sex() {
        return user_sex;
    }

    public void setUser_sex(int user_sex) {
//        switch (Integer.parseInt(user_sex)){
//            case 0 : this.user_sex = "女";
//            case 1 : this.user_sex = "男";
//        }
        this.user_sex = user_sex;
    }

    public String getUser_avaturl() {
        return user_avaturl;
    }

    public void setUser_avaturl(String user_avaturl) {
        this.user_avaturl = user_avaturl;
    }


    public int getUser_subscribeNum() {
        return user_subscribeNum;
    }

    public void setUser_subscribeNum(int user_subscribeNum) {
        this.user_subscribeNum = user_subscribeNum;
    }

    public int getUser_fansNum() {
        return user_fansNum;
    }

    public void setUser_fansNum(int user_fansNum) {
        this.user_fansNum = user_fansNum;
    }

    public int getUser_beLikeNum() {
        return user_beLikeNum;
    }

    public void setUser_beLikeNum(int user_beLikeNum) {
        this.user_beLikeNum = user_beLikeNum;
    }

    public int getUser_status() {
        return user_status;
    }

    public void setUser_status(int user_status) {
        this.user_status = user_status;
    }

    public Boolean getUser_isAdmin() {
        return user_isAdmin;
    }

    public void setUser_isAdmin(Boolean user_isAdmin) {
        this.user_isAdmin = user_isAdmin;
    }

}
